import Vue from 'vue'
import Vuex from 'vuex'
import state from "./state";
import mutations from "./mutations"
import actions from "./actions"
import getters from './getters'
Vue.use(Vuex)

import vuexPersist from 'vuex-persist' 

export default new Vuex.Store({
  state,
  mutations,
  actions,
  getters,
  modules: {
  },

  
  plugins: [
    new vuexPersist({
      storage: window.localStorage,
    }).plugin,
  ],
})
